package com.ruoyi.bank.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bank.mapper.BankBranchInstitutionsMapper;
import com.ruoyi.bank.domain.BankBranchInstitutions;
import com.ruoyi.bank.service.IBankBranchInstitutionsService;

/**
 * 网点机构管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-15
 */
@Service
public class BankBranchInstitutionsServiceImpl implements IBankBranchInstitutionsService 
{
    @Autowired
    private BankBranchInstitutionsMapper bankBranchInstitutionsMapper;

    /**
     * 查询网点机构管理
     * 
     * @param branchId 网点机构管理主键
     * @return 网点机构管理
     */
    @Override
    public BankBranchInstitutions selectBankBranchInstitutionsByBranchId(Long branchId)
    {
        return bankBranchInstitutionsMapper.selectBankBranchInstitutionsByBranchId(branchId);
    }

    /**
     * 查询网点机构管理列表
     * 
     * @param bankBranchInstitutions 网点机构管理
     * @return 网点机构管理
     */
    @Override
    public List<BankBranchInstitutions> selectBankBranchInstitutionsList(BankBranchInstitutions bankBranchInstitutions)
    {
        return bankBranchInstitutionsMapper.selectBankBranchInstitutionsList(bankBranchInstitutions);
    }

    /**
     * 新增网点机构管理
     * 
     * @param bankBranchInstitutions 网点机构管理
     * @return 结果
     */
    @Override
    public int insertBankBranchInstitutions(BankBranchInstitutions bankBranchInstitutions)
    {
        return bankBranchInstitutionsMapper.insertBankBranchInstitutions(bankBranchInstitutions);
    }

    /**
     * 修改网点机构管理
     * 
     * @param bankBranchInstitutions 网点机构管理
     * @return 结果
     */
    @Override
    public int updateBankBranchInstitutions(BankBranchInstitutions bankBranchInstitutions)
    {
        return bankBranchInstitutionsMapper.updateBankBranchInstitutions(bankBranchInstitutions);
    }

    /**
     * 批量删除网点机构管理
     * 
     * @param branchIds 需要删除的网点机构管理主键
     * @return 结果
     */
    @Override
    public int deleteBankBranchInstitutionsByBranchIds(Long[] branchIds)
    {
        return bankBranchInstitutionsMapper.deleteBankBranchInstitutionsByBranchIds(branchIds);
    }

    /**
     * 删除网点机构管理信息
     * 
     * @param branchId 网点机构管理主键
     * @return 结果
     */
    @Override
    public int deleteBankBranchInstitutionsByBranchId(Long branchId)
    {
        return bankBranchInstitutionsMapper.deleteBankBranchInstitutionsByBranchId(branchId);
    }
}
